# -*- coding: iso-8859-15 -*-
import vue
import flocking
import SETTINGS


class Controleur(object):
    def __init__(self):
        self.modele = flocking.Modele(self)
        self.vue = vue.Vue(self)
        self.loopControle()
        self.vue.root.mainloop()
        
        
        
    def loopControle(self):
        self.modele.animate()
        self.vue.afficher()
        
        self.vue.root.after(SETTINGS.VITESSE_LOOP,self.loopControle)
        
    def getFlock(self):
        return self.modele.flock.flock
    
    def getPredateurs(self):
        return self.modele.predateurs
    
if __name__ == "__main__":
    ctrl = Controleur()